package com.power.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author 海晨忆
 * @Des 活动查询参数
 * @Date 2025/8/14 10:14
 */
@SuperBuilder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActivityQuery extends BaseQuery {
    private Integer id;
    private Integer ownerId;
    private String name;
    //前端传过来的是字符串，格式满足pattern规则，后端接受需要转成Date对象
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    private BigDecimal cost;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private String description;
}
